package com.qcby.shujia.demo.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qcby.shujia.demo.entity.Role;
import com.qcby.shujia.demo.service.TestRoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @className: TestRoleController
 * @description: TODO 类描述
 * @author: whz
 * @date: 2021/10/11
 **/
@Slf4j
@RestController
@RequestMapping("test")
public class TestRoleController {
    @Autowired
    private TestRoleService testRoleService;
    @Value("${swagger.version}")
    private String ko;
    @RequestMapping("listpage")
    public IPage<Role> listPage(int pageNo, int pageSize){
        IPage<Role> page = new Page<>(pageNo,pageSize);
        return testRoleService.page(page);
    }

}
